<?php

class Application_Form_Login extends Zend_Form
{

    public function init()
  {
    $pesel = $this->createElement('text', 'username');
    $pesel->setLabel('Identyfikator:')
            ->setRequired(TRUE)
            ->setAttrib('size', 30)
            ->addFilters(array(
                new Zend_Filter_StringTrim()
            ));
    $haslo = $this->createElement('password', 'haslo');
    $haslo->setLabel('Hasło:')
            ->setRequired(TRUE)
            ->setAttrib('size', 30);
    $this->addElements(array(
        $pesel,
        $haslo,
        array(
            'submit', 'submit', array(
                'label' => 'zaloguj'
                )
            )
        ));
  }
}